package entity;

import javax.persistence.Entity;
import javax.persistence.FetchType;
import javax.persistence.ManyToOne;

import org.hibernate.annotations.ForceDiscriminator;

@Entity
@ForceDiscriminator
public class OrganizationUnit extends OrganizationElement {
	
	private int level;
	@ManyToOne(fetch = FetchType.LAZY)
	private Organization organization;

	public void setLevel(int level) {
		this.level = level;
	}

	public int getLevel() {
		return level;
	}

	public void setOrganization(Organization organization) {
		this.organization = organization;
	}

	public Organization getOrganization() {
		return organization;
	}
}
